package sg.edu.nus.dbd.formbean;

import java.io.Serializable;

/**
 * 
 * @author Ashok Savarimuthu
 * 
 */
public class ThresholdConfig implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;
	private String name;
	private String metricName;
	private boolean inverse = false;
	private double minLevel;
	private double maxLevel;
	private double warningLevel;
	private double criticalLevel;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	public String getMetricName() {
		return metricName;
	}

	public void setMetricName(String metricName) {
		this.metricName = metricName;
	}

	public boolean isInverse() {
		return inverse;
	}

	public void setInverse(boolean inverse) {
		this.inverse = inverse;
	}

	/**
	 * @return the minLevel
	 */
	public double getMinLevel() {
		return minLevel;
	}

	/**
	 * @param minLevel
	 *            the minLevel to set
	 */
	public void setMinLevel(double minLevel) {
		this.minLevel = minLevel;
	}

	/**
	 * @return the maxLevel
	 */
	public double getMaxLevel() {
		return maxLevel;
	}

	/**
	 * @param maxLevel
	 *            the maxLevel to set
	 */
	public void setMaxLevel(double maxLevel) {
		this.maxLevel = maxLevel;
	}

	/**
	 * @return the warningLevel
	 */
	public double getWarningLevel() {
		return warningLevel;
	}

	/**
	 * @param warningLevel
	 *            the warningLevel to set
	 */
	public void setWarningLevel(double warningLevel) {
		this.warningLevel = warningLevel;
	}

	/**
	 * @return the criticalLevel
	 */
	public double getCriticalLevel() {
		return criticalLevel;
	}

	/**
	 * @param criticalLevel
	 *            the criticalLevel to set
	 */
	public void setCriticalLevel(double criticalLevel) {
		this.criticalLevel = criticalLevel;
	}

	public String toString() {
		return id + " " + name + " " + metricName + " " + inverse + " "
				+ minLevel + " " + maxLevel + " " + warningLevel + " "
				+ criticalLevel;
	}
}
